local jianyou = fk.CreateSkill{
    name = "tyj_heg__jianyou",
}

  Fk:loadTranslationTable{
      ["tyj_heg__jianyou"]="蹇诱",
      [":tyj_heg__jianyou"]="你可以使用手牌中的一张装备牌，视为使用【杀】或【无懈可击】。若替换了装备，此牌无法被响应。",
      ["$tyj_heg__jianyou1"]="以主制客，占尽优势。",
      ["$tyj_heg__jianyou2"]="反守为攻，直捣黄龙。",
    }
    jianyou:addEffect("viewas", {
      anim_type = "control",
      pattern = "slash,nullification",
      interaction = function(self, player)
        local names = {}
        if Fk.currentResponsePattern == nil and player:canUse(Fk:cloneCard("slash")) then
          table.insertIfNeed(names, "slash")
        else
          for _, name in ipairs({"slash", "nullification"}) do
            if Fk.currentResponsePattern and Exppattern:Parse(Fk.currentResponsePattern):match(Fk:cloneCard(name)) then
              table.insertIfNeed(names, name)
            end
          end
        end
        if #names == 0 then return end
    return UI.CardNameBox {choices = names, {"slash", "nullification"}}
      end,
      card_filter = function(self, player, to_select, selected)
        return #selected == 0 and Fk:currentRoom():getCardArea(to_select) ~= Player.Equip and Fk:getCardById(to_select).type == Card.TypeEquip
        and player:canUseTo(Fk:getCardById(to_select), player)
      end,
      view_as = function(self, player, cards)
        if #cards ~= 1 or self.interaction.data == nil then return end
        local card_name = self.interaction.data
        local card = Fk:cloneCard(card_name)
        card.skillName = jianyou.name
        card:setMark(self.name, cards[1])
        return card
      end,
      before_use = function (self, player, use)
        local room = player.room
    local card_id = use.card:getMark(self.name)
    if #table.filter(player:getCardIds(Player.Equip), function (cid)
      return Fk:getCardById(cid).sub_type == Fk:getCardById(card_id).sub_type
    end)>0 then
      use.disresponsiveList = table.simpleClone(player.room.players)
    end
      room:useCard{
        from = player,
        tos = {player},
        card = Fk:getCardById(card_id),
      }
      end,
      enabled_at_response = function(self, player, response)
        return not response and not player:isKongcheng()
      end,
    })
  return jianyou